<?php
/**
 * @link https://www.kancloud.cn/cleverstone/ymb2
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

use builder\base\BaseBundle;
use yii\helpers\Html;

BaseBundle::register($this);

/** @var \yii\web\View $this view组件实例 */
/** @var string $content 主体内容 */
/** @var string $uiTheme UI主题 */

$uiTheme = $this->params['uiTheme'];
$themeColor = $this->params['themeColor'];
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" class="h-100">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, shrink-to-fit=no">
    <?php $this->registerCsrfMetaTags() ?>
    <?= \builder\helper\H5::registerBackendMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>

    <!--Brand-->
    <script>
        console.log('%cYii Manager 2.0 ', 'color:#00b6bf;font-size:36px;font-style:italic;');
    </script>
    <!--css变量-->
    <style>
        :root {
            --primary-color: <?= $themeColor ?>;
        }
    </style>
</head>
<body class="d-flex flex-column h-100 <?= $uiTheme ?>" ng-cloak ng-app="ym2.app">
<?php $this->beginBody() ?>

<main role="main">
    <?= $content ?>
</main>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage();
